#include "MagneticSensorI2CBase.h"


MagneticSensorI2CBase::MagneticSensorI2CBase()
{
}

MagneticSensorI2CBase::~MagneticSensorI2CBase()
{
}

void MagneticSensorI2CBase::init(SoftWareIIC *iic)
{
    m_iic = iic;
    this->Sensor::init(); // call base class init
}

float MagneticSensorI2CBase::getSensorAngle()
{
    return  ( getRawCount() / (float)m_cpr) * _2PI ;
}
